#ifndef CLIENTMANAGER_H
#define CLIENTMANAGER_H

#include "../include/global.h"
#include "../include/message.h"


#include "client.h"
#include  "config.h"

void *startClientThread(void *arg);

class ClientManager {
	public:
		ClientManager(ClientConfigType *clientConfigInfo);
		~ClientManager();
	
	public:
		int getZipfDistribution(vector<double> & distribution);
		int startAllClients();
		unsigned int getRequestFileId(const vector<double> &distribution);	
	private:
		double _zipfParameter;
		double _poissonParameter;
		double _resourceNumber;
		string _requestListFile;
		ClientConfigType *_clientConfig;
};

#endif
